package example;

import java.lang.reflect.Method;

public class InvocableHandlerMethod implements HandlerMethod{
    private Object bean;
    private Method method;
    public InvocableHandlerMethod(Object bean, Method method) {
        this.bean = bean;
        this.method = method;
    }
    public Object doInvoke(Object... args) throws Exception {
        return method.invoke(bean,args);
    }
}
